using UnityEngine;

[CreateAssetMenu(fileName = "InVariable", menuName = "Variable/InVariable")]
public class InVariable : ScriptableObject
{
    public int maxValue;
    public int currentValue;
    
    public IntEventSO valueChangedEvent;
    
    [TextArea]
    [SerializeField]private string description;
    public void SetValue(int value)
    {
        currentValue = value;
        valueChangedEvent?.RaisEvent(value,this);
    }
}
